var globalPath = (function(){
	var getBasePath = function() {
		var obj = window.location;
		//var contextPath = obj.pathname.split("/")[1];
		var basePath = obj.protocol+"//"+ obj.host +"/";
		return basePath;
	}
	
	return {
		getBasePath : getBasePath
	}
})();


globalPath.getBasePath();